How to get the default value of an input field